package com.cy.ppj.dao.mongodb;

import com.cy.ppj.model.doc.SmsRecord;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface SmsRecordDao extends MongoRepository<SmsRecord, String> {

    Page<SmsRecord> findByMobile(String mobile, Pageable pageable);

    Page<SmsRecord> findAll(Pageable pageable);

}
